package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 风险排查记录
 * @Author: jeecg-boot
 * @Date:   2024-04-29
 * @Version: V1.0
 */
@Data
@TableName("tb_base_measures_task_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="风险排查记录")
public class TbBaseMeasuresTaskRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**管控措施描述*/
	@Excel(name = "管控措施描述", width = 15)
    @Schema(description = "管控措施描述")
    private String riskMeasureDesc;
	/**隐患排查内容*/
	@Excel(name = "隐患排查内容", width = 15)
    @Schema(description = "隐患排查内容")
    private String troubleshootOntent;
	/**排查周期*/
	@Excel(name = "排查周期", width = 15)
    @Schema(description = "排查周期")
    private Integer period;
	/**周期单位*/
	@Excel(name = "周期单位", width = 15, dicCode = "period_type")
	@Dict(dicCode = "period_type")
    @Schema(description = "周期单位")
    private String periodUnit;
	/**剩余时间*/
	@Excel(name = "剩余时间", width = 15)
    @Schema(description = "剩余时间")
    private String timeRemaining;
	/**排查人*/
	@Excel(name = "排查人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "排查人")
    private String identifyPeople;
	/**排查时间*/
	@Excel(name = "排查时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "排查时间")
    private Date checkTime;
	/**任务开始时间*/
	@Excel(name = "任务开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "任务开始时间")
    private Date taskStartTime;
    /**任务结束时间*/
    @Excel(name = "任务结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "任务结束时间")
    private Date taskEndTime;
	/**排查结果*/
	@Excel(name = "排查结果", width = 15, dicCode = "checkStatus")
	@Dict(dicCode = "checkStatus")
    @Schema(description = "排查结果")
    private String checkStatus;
	/**创建人手机号*/
	@Excel(name = "创建人手机号", width = 15)
    @Schema(description = "创建人手机号")
    private String createByMobile;
	/**是否包保责任人任务标识*/
	@Excel(name = "是否包保责任人任务标识", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "是否包保责任人任务标识")
    private String isDefend;
	/**手机识别码 IMEI*/
	@Excel(name = "手机识别码 IMEI", width = 15)
    @Schema(description = "手机识别码 IMEI")
    private String mobileMe;
	/**风险分析装置*/
	@Excel(name = "风险分析装置", width = 15, dictTable = "tb_base_risk_device", dicText = "name", dicCode = "id")
	@Dict(dictTable = "tb_base_risk_device", dicText = "name", dicCode = "id")
    @Schema(description = "风险分析装置")
    private String riskDeviceId;
	/**风险分析单元*/
	@Excel(name = "风险分析单元", width = 15, dictTable = "tb_base_risk_unit", dicText = "risk_unit_name", dicCode = "id")
	@Dict(dictTable = "tb_base_risk_unit", dicText = "risk_unit_name", dicCode = "id")
    @Schema(description = "风险分析单元")
    private String riskUnitId;
	/**删除标志*/
	@Excel(name = "删除标志", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "删除标志")
    private String deleted;
	/**排查任务id*/
	@Excel(name = "排查任务id", width = 15)
    @Schema(description = "排查任务id")
    private String checkTaskId;

    /**租户ID*/
    private Integer tenantId;
}
